package com.oracle.oa.entity;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


@Entity                        
@Table(name="filetype_info")
public class Filetypeinfo  implements java.io.Serializable {

	 @GenericGenerator(name = "generator", strategy = "increment")
	 @Id
	 @GeneratedValue(generator = "generator")
	 @Column(name = "filetypeid", unique = true, nullable = false)
     private int filetypeid;
	 @Column(name = "filetypename", length = 64)
     private String filetypename;
	 @Column(name = "filetypeimage", length = 64)
     private String filetypeimage;
	 @Column(name = "filetypesuffix", length = 64)
     private String filetypesuffix;
	 
	 @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "category")
     private Set accessoryfiles = new HashSet(0);
     
	 @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "category")
     private Set fileinfos = new HashSet(0);


    // Constructors

    /** default constructor */
    public Filetypeinfo() {
    }

	/** minimal constructor */
    public Filetypeinfo(String filetypename, String filetypeimage) {
        this.filetypename = filetypename;
        this.filetypeimage = filetypeimage;
    }
    
    /** full constructor */
    public Filetypeinfo(String filetypename, String filetypeimage, String filetypesuffix, Set accessoryfiles, Set fileinfos) {
        this.filetypename = filetypename;
        this.filetypeimage = filetypeimage;
        this.filetypesuffix = filetypesuffix;
        this.accessoryfiles = accessoryfiles;
        this.fileinfos = fileinfos;
    }

   
    // Property accessors

    public String getFiletypename() {
        return this.filetypename;
    }
    
    public int getFiletypeid() {
		return filetypeid;
	}

	public void setFiletypeid(int filetypeid) {
		this.filetypeid = filetypeid;
	}

	public void setFiletypename(String filetypename) {
        this.filetypename = filetypename;
    }

    public String getFiletypeimage() {
        return this.filetypeimage;
    }
    
    public void setFiletypeimage(String filetypeimage) {
        this.filetypeimage = filetypeimage;
    }

    public String getFiletypesuffix() {
        return this.filetypesuffix;
    }
    
    public void setFiletypesuffix(String filetypesuffix) {
        this.filetypesuffix = filetypesuffix;
    }

    public Set getAccessoryfiles() {
        return this.accessoryfiles;
    }
    
    public void setAccessoryfiles(Set accessoryfiles) {
        this.accessoryfiles = accessoryfiles;
    }

    public Set getFileinfos() {
        return this.fileinfos;
    }
    
    public void setFileinfos(Set fileinfos) {
        this.fileinfos = fileinfos;
    }
   








}